﻿using System;
using System.Collections.Generic;
using System.Text;


using H2.NET.Data.Common;
using H2.NET.Data.Common.Mappings;
using H2.NET.Data.Common.Validates;

namespace H2.NET.Business
{
    [Table]
    [Serializable]
    public class mdc_spm_InvoiceHolding : DataObject
    {
        [ID]
        [DID]
        public string ID { get { return _ID; } set { _ID = value; EntityState.FieldChange("ID"); } } private string _ID; public static FieldInfo iD = new FieldInfo("spm_Sales_1", "ID");
        [Column]
        public string Process { get { return _Process; } set { _Process = value; EntityState.FieldChange("Process"); } } private string _Process; public static FieldInfo process = new FieldInfo("spm_Sales_1", "Process");
        [Column]
        public int Incident { get { return _Incident; } set { _Incident = value; EntityState.FieldChange("Incident"); } } private int _Incident; public static FieldInfo incident = new FieldInfo("spm_Sales_1", "Incident");
        [Column]
        public string UserName { get { return _UserName; } set { _UserName = value; EntityState.FieldChange("UserName"); } } private string _UserName; public static FieldInfo userName = new FieldInfo("spm_Sales_1", "UserName");
        [Column]
        public string Type { get { return _Type; } set { _Type = value; EntityState.FieldChange("Type"); } } private string _Type; public static FieldInfo type = new FieldInfo("spm_Sales_1", "Type");
        [Column]
        public string Sap_Code { get { return _Sap_Code; } set { _Sap_Code = value; EntityState.FieldChange("Sap_Code"); } } private string _Sap_Code; public static FieldInfo sap_Code = new FieldInfo("spm_Sales_1", "Sap_Code");
        [Column]
        public string Sold_CN_Name { get { return _Sold_CN_Name; } set { _Sold_CN_Name = value; EntityState.FieldChange("Sold_CN_Name"); } } private string _Sold_CN_Name; public static FieldInfo sold_CN_Name = new FieldInfo("spm_Sales_1", "Sold_CN_Name");



        [Column]
        [NowDate]
        public DateTime Time { get { return _Time; } set { _Time = value; EntityState.FieldChange("Time"); } }
        private DateTime _Time;
        public static FieldInfo time = new FieldInfo("spm_Sales_1", "Time");

        [Column]
        [DefaultInt(0)]
        public int Status { get { return _Status; } set { _Status = value; EntityState.FieldChange("Status"); } }
        private int _Status;
        public static FieldInfo status = new FieldInfo("spm_Sales_1", "Status");

        [Column]
        public string Department { get { return _Department; } set { _Department = value; EntityState.FieldChange("Department"); } }
        private string _Department;
        public static FieldInfo department = new FieldInfo("cmd_Customer", "Department");

        [Column]
        public string ApplicationNo { get { return _ApplicationNo; } set { _ApplicationNo = value; EntityState.FieldChange("ApplicationNo"); } }
        private string _ApplicationNo;
        public static FieldInfo applicationNo = new FieldInfo("cmd_Customer", "ApplicationNo");
    }
}
